<?php
/**
 * Created by PhpStorm.
 * User: zhan
 * Date: 2019/1/2  9:55
 */
namespace app\driver\controller;

class Memberdriver extends Base
{
//检查权限作用域
    protected $beforeActionList  = [
        'checkPrimaryScope' => [
            'except' => 'except'
        ],
    ];
    //我的资料
    public function driverInfo()
    {
        $driverInfo =  (new \app\driver\logic\Memberdriver())->driverInfo();
        return $this->ajaxReturn($driverInfo);
    }

    //资料修改
    public function editDriver()
    {
        $editDriver =  (new \app\driver\logic\Memberdriver())->editDriver();
        return $this->ajaxReturn($editDriver);
    }

    /*
     * 申请商家司机
     */
    public function  apply()
    {
        $apply =  (new \app\driver\logic\Memberdriver())->apply();
        return $this->ajaxReturn($apply);
    }

    /*
     * 我的商家
     */
    public function  myBusiness()
    {
        $myBusiness =  (new \app\driver\logic\Memberdriver())->myBusiness();
        return $this->ajaxReturn($myBusiness);
    }

    /*
    * 删除申请
    */
    public function unbind()
    {
        $unbind =  (new \app\driver\logic\Memberdriver())->unbind();
        return $this->ajaxReturn($unbind);
    }

    /*
     * 证件
     */
    public function licenceInfo()
    {
        $licenceInfo =  (new \app\driver\logic\Memberdriver())->licenceInfo();
        return $this->ajaxReturn($licenceInfo);
    }

    /*
     * 编辑证件
     */
    public function editLicence()
    {
        $editLicence =  (new \app\driver\logic\Memberdriver())->editLicence();
        return $this->ajaxReturn($editLicence);
    }



    //我的钱包
    public function wallet()
    {
        $wallet =  (new \app\driver\logic\Memberdriver())->wallet();
        return $this->ajaxReturn($wallet);
    }

    /**
     * 收支明细
     */
    public function payment(){
        $payment =  (new \app\driver\logic\Memberdriver())->payment();
        return $this->ajaxReturn($payment);
    }

    public function paymentInfo()
    {
        $paymentInfo =  (new \app\driver\logic\Memberdriver())->paymentInfo();
        return $this->ajaxReturn($paymentInfo);
    }

    //提现
    public function withdraw(){
        $withdraw =  (new \app\driver\logic\Memberdriver())->withdraw();
        return $this->ajaxReturn($withdraw);
    }



}